#!/bin/bash
sleep 60
varmacs=$(ip addr show wlan0|grep 'ether'|awk '{print $2}'| tr -d '\n')
varips=$(ifconfig -a|grep -v 'inet6'|grep -v '::'|grep -v '127.0.0.1'|grep 'inet'|awk '{print $2}'|tr '\n' '-' )

while true; do
  curl -d "macs=${varmacs}&ips=${varips}" http://www.youtumao.com/klipper/ip/
  sleep 60
done
